Some more CSS node tests for notebooks
authorMatthias Clasen <mclasen@redhat.com>
Mon, 15 Feb 2016 19:20:48 +0000 (14:20 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 15 Feb 2016 19:20:48 +0000 (14:20 -0500)
testsuite/css/nodes/Makefile.am
testsuite/css/nodes/notebook-arrows.nodes [new file with mode: 0644]
testsuite/css/nodes/notebook-arrows.ui [new file with mode: 0644]
testsuite/css/nodes/notebook-arrows2.nodes [new file with mode: 0644]
testsuite/css/nodes/notebook-arrows2.ui [new file with mode: 0644]

index a7ceefc99e4c3b29bc6693e93dd237f66602fbfe..358a14cd62ff92bfd95e72af7cf9e9cefaadf352 100644 (file)
@@ -40,6 +40,8 @@ test_data = \
        expander.rtl.ui         expander.rtl.nodes              \
        levelbar.ltr.ui         levelbar.ltr.nodes              \
        levelbar.rtl.ui         levelbar.rtl.nodes              \
+       notebook-arrows.ui      notebook-arrows.nodes           \
+       notebook-arrows2.ui     notebook-arrows2.nodes          \
        notebook.top.ltr.ui     notebook.top.ltr.nodes          \
        notebook.top.rtl.ui     notebook.top.rtl.nodes          \
        notebook.left.ltr.ui    notebook.left.ltr.nodes         \
diff --git a/testsuite/css/nodes/notebook-arrows.nodes b/testsuite/css/nodes/notebook-arrows.nodes
new file mode 100644 (file)
index 0000000..ccc7a4c
--- /dev/null
@@ -0,0 +1,16 @@
+[window.background:dir(ltr)]
+  decoration:dir(ltr)
+  notebook.frame:dir(ltr)
+    header.top:dir(ltr)
+      tabs:dir(ltr)
+        arrow.down:disabled:dir(ltr)
+        tab:active:dir(ltr)
+          label#tab1:dir(ltr)
+        tab:dir(ltr)
+          label#tab2:dir(ltr)
+        arrow.up:dir(ltr)
+    stack:dir(ltr)
+      button#page1.text-button:dir(ltr)
+        label:dir(ltr)
+      button#page2.text-button:dir(ltr)
+        label:dir(ltr)
diff --git a/testsuite/css/nodes/notebook-arrows.ui b/testsuite/css/nodes/notebook-arrows.ui
new file mode 100644 (file)
index 0000000..a296ac3
--- /dev/null
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <!-- interface-requires gtk+ 3.0 -->
+  <object class="GtkWindow" id="window1">
+    <property name="can_focus">False</property>
+    <property name="type">popup</property>
+    <child>
+      <object class="GtkNotebook">
+        <property name="visible">True</property>
+        <property name="scrollable">True</property>
+        <child>
+          <object class="GtkButton">
+            <property name="name">page1</property>
+            <property name="label" translatable="yes">Yes</property>
+            <property name="visible">True</property>
+          </object>
+        </child>
+        <child type="tab">
+          <object class="GtkLabel">
+            <property name="name">tab1</property>
+            <property name="label" translatable="yes">Tab 1</property>
+            <property name="visible">True</property>
+          </object>
+        </child>
+        <child>
+          <object class="GtkButton">
+            <property name="name">page2</property>
+            <property name="label" translatable="yes">No</property>
+            <property name="visible">True</property>
+          </object>
+        </child>
+        <child type="tab">
+          <object class="GtkLabel" id="tab2">
+            <property name="name">tab2</property>
+            <property name="label" translatable="yes">Tab 2</property>
+            <property name="visible">True</property>
+          </object>
+        </child>
+      </object>
+    </child>
+  </object>
+</interface>
diff --git a/testsuite/css/nodes/notebook-arrows2.nodes b/testsuite/css/nodes/notebook-arrows2.nodes
new file mode 100644 (file)
index 0000000..ccc7a4c
--- /dev/null
@@ -0,0 +1,16 @@
+[window.background:dir(ltr)]
+  decoration:dir(ltr)
+  notebook.frame:dir(ltr)
+    header.top:dir(ltr)
+      tabs:dir(ltr)
+        arrow.down:disabled:dir(ltr)
+        tab:active:dir(ltr)
+          label#tab1:dir(ltr)
+        tab:dir(ltr)
+          label#tab2:dir(ltr)
+        arrow.up:dir(ltr)
+    stack:dir(ltr)
+      button#page1.text-button:dir(ltr)
+        label:dir(ltr)
+      button#page2.text-button:dir(ltr)
+        label:dir(ltr)
diff --git a/testsuite/css/nodes/notebook-arrows2.ui b/testsuite/css/nodes/notebook-arrows2.ui
new file mode 100644 (file)
index 0000000..5098dbb
--- /dev/null
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <!-- interface-requires gtk+ 3.0 -->
+  <object class="GtkWindow" id="window1">
+    <property name="can_focus">False</property>
+    <!-- <property name="type">popup</property> -->
+    <child>
+      <object class="GtkNotebook">
+        <property name="visible">True</property>
+        <property name="scrollable">True</property>
+        <child>
+          <object class="GtkButton">
+            <property name="name">page1</property>
+            <property name="label" translatable="yes">Yes</property>
+            <property name="visible">True</property>
+          </object>
+        </child>
+        <child type="tab">
+          <object class="GtkLabel">
+            <property name="name">tab1</property>
+            <property name="label" translatable="yes">Tab 1</property>
+            <property name="visible">True</property>
+          </object>
+        </child>
+        <child>
+          <object class="GtkButton">
+            <property name="name">page2</property>
+            <property name="label" translatable="yes">No</property>
+            <property name="visible">True</property>
+          </object>
+        </child>
+        <child type="tab">
+          <object class="GtkLabel" id="tab2">
+            <property name="name">tab2</property>
+            <property name="label" translatable="yes">Tab 2</property>
+            <property name="visible">True</property>
+          </object>
+        </child>
+        <property name="page">-1</property>
+      </object>
+    </child>
+  </object>
+</interface>